package com.pdf.editor;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class MainApplication extends Application {

    public static final MainApplication instance = new MainApplication();

    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader mainViewLoader = new FXMLLoader(MainApplication.class.getResource("main-view.fxml"));
        Scene scene = new Scene(mainViewLoader.load());
        stage.setTitle("PDF Editor");
        stage.setScene(scene);
        //stage.setResizable(false);
        stage.show();

        MainController mainController = mainViewLoader.getController();
        mainController.init(scene);
    }

    public static void main(String[] args) {
        launch();
    }
}